//输入情况1
// let row_count = 5
// let column_count = 10
// let char = 'a'
//输入情况2
let input_arr = ['10 a']
let arr = input_arr[0].split(' ')
let column_count = parseInt(arr[0])
let row_count = Math.round(column_count/2)
let char = arr[1]

for (let i = 0;i < row_count;i++)
    {
        for (let j = 0;j < column_count;j++)
            {
                process.stdout.write(char)//把所有字符打在同一行上不换行
            }
            console.log()//换行
    }